home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac: Not for Sale / Another.not.for.sale (Australia).iso / fade into you / getting there / Apps / MOO-1.7.6.src / inc / unparse.h < prev    next >
Text File  |  1994-11-02  |  3KB  |  81 lines

  1. /******************************************************************************
  2.   Copyright (c) 1992 Xerox Corporation.  All rights reserved.
  3.   Portions of this code were written by Stephen White, aka ghond.
  4.   Use and copying of this software and preparation of derivative works based
  5.   upon this software are permitted.  Any distribution of this software or
  6.   derivative works must comply with all applicable United States export
  7.   control laws.  This software is made available AS IS, and Xerox Corporation
  8.   makes no warranty about the software, its performance or its conformity to
  9.   any specification.  Any person obtaining a copy of this software is requested
  10.   to send their name and post office or electronic mail address to:
  11.     Pavel Curtis
  12.     Xerox PARC
  13.     3333 Coyote Hill Rd.
  14.     Palo Alto, CA 94304
  15.     Pavel@Xerox.Com
  16.  *****************************************************************************/
  17.  
  18. #ifndef Unparse_h
  19. #define Unparse_h 1
  20.  
  21. #include "my-stdio.h"
  22. #include "my-string.h"
  23.  
  24. #include "bytecodes.h"
  25. #include "config.h"
  26. #include "functions.h"
  27. #include "opcode.h"
  28. #include "parse_cmd.h"
  29. #include "streams.h"
  30. #include "structures.h"
  31.  
  32. typedef void (*Unparser_Receiver)(void *, const char *);
  33.  
  34. /* the external functions */
  35.  
  36. #define MAIN_VECTOR -1 /* if f_index == MAIN_VECTOR, main_vector is used */
  37. extern void     list_prog(Program *, Unparser_Receiver, void *, 
  38.               char user_paren, char user_tab, int f_index);
  39. extern unsigned    get_lineno(Program *, unsigned pc, int f_index);
  40.  
  41. extern const char *err2str(enum error); /* E_NONE -> "E_NONE" */
  42. extern const char *unparse_error(enum error errno); /* E_NONE -> "No error" */
  43.  
  44. extern const char *unparse_option(int);
  45. extern const char *unparse_prep(int);
  46.  
  47. struct pptable_entry {
  48.     const char         *name;
  49.     Propid              propno;
  50.     var_type            type;     /* type of property */
  51.     short               settable; /* by whom: 0 for program, 1 for wizard,
  52.                                               2 for builder, 3 for player */
  53. };
  54.  
  55. extern struct pptable_entry *match_pseudo_property(const char *, Propid *);
  56.  
  57. #endif
  58.  
  59. /* $Log: unparse.h,v $
  60.  * Revision 1.7  1992/10/23  23:03:47  pavel
  61.  * Added copyright notice.
  62.  *
  63.  * Revision 1.6  1992/10/21  03:02:35  pavel
  64.  * Converted to use new automatic configuration system.
  65.  *
  66.  * Revision 1.5  1992/08/31  22:23:46  pjames
  67.  * Changed some `char *'s to `const char *'
  68.  *
  69.  * Revision 1.4  1992/08/21  00:40:15  pavel
  70.  * Renamed include file "parse_command.h" to "parse_cmd.h".
  71.  *
  72.  * Revision 1.3  1992/08/13  23:59:27  pavel
  73.  * Converted to a typedef of `var_type' = `enum var_type'.
  74.  *
  75.  * Revision 1.2  1992/08/10  16:41:25  pjames
  76.  * Changed ip to pc.
  77.  *
  78.  * Revision 1.1  1992/07/20  23:23:12  pavel
  79.  * Initial RCS-controlled version.
  80.  * */
  81.